/*
 * @Author: your name
 * @Date: 2021-11-13 08:02:53
 * @LastEditTime: 2021-11-18 19:42:16
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \li-yuwei\admin\src\api\article\index.js
 */
import request from "../../utils/request";
//获取邮件数据列表
function getEmail(data) {
    return request({
        url: "/api/email",
        method: "post",
        data: data,
    });
}
//删除(单个)
function delEmail(data) {
    return request({
        url: "/api/email",
        method: "delete",
        data: data,
    });
}
//批量删除
function batchDelEmail(data) {
    return request({
        url: "/api/batchDelEmail",
        method: "delete",
        data: data,
    });
}

export default {
    getEmail,
    delEmail,
    batchDelEmail,
};